home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib6
/
v_08_11
/
8n11031b
< prev
next >
Wrap
Text File
|
1995-11-01
|
334b
|
21 lines
#include <stdio.h>
#include <stdlib.h>
main()
{
char *pc;
if (putenv("test=1234") == -1)
printf("cannot define string\n");
else {
printf("string definition added\n");
pc = getenv("test");
printf("string defined as >%s<\n", pc);
system("see");
}
}
string definition added
string defined as >1234<